import request from '@/uview-ui/libs/request/index.js'
/************************************************************/
let baseUrl = 'https://v-test.wufae.com/LS/2024mbti/web/api/?r='
if(process.env.NODE_ENV == 'production'){
	//baseUrl = 'https://v.wufae.com/LS/2024mbti/web/api/?r='
}
const http = {
	/*************共用接口***********************/
    login(data) {
        return request.post(baseUrl + '/default/login',data);
    },
	memLogin(data){
        return request.post(baseUrl + '/default/member-login',data);
    },
	init(data){
		return request.post(baseUrl + '/default/init',data);
	},
	saveInfo(data){
		return request.post(baseUrl + '/default/save-info',data);
	},
	ossConfig(data){
		return request.get(baseUrl + '/default/oss-config',data);
	},
	subscribe(data){
		return request.post(baseUrl + '/default/subscribe',data);
	},
	/*************第一个活动的接口***********************/
	walkInit(data){
		return request.post(baseUrl + '/walk/init-data',data);
	},
	civilization(data){
		return request.post(baseUrl + '/walk/civilization',data);
	},
	updateDV(data){
		return request.post(baseUrl + '/walk/update-dv-status',data);
	},
	dmlist(data){
		return request.post(baseUrl + '/walk/show-list',data);
	},
	submitSteps(data){
		return request.post(baseUrl + '/walk/submit-steps',data);
	},
	userPrize(data){
		return request.post(baseUrl + '/walk/user-prize',data);
	},
	writeLog(data){
		return request.get(baseUrl + '/walk/write-event',data);
	},

	/*************第二个活动的接口***********************/

	squareData(data){
		return request.post(baseUrl + '/mbti/square-data',data);
	},
	squareShow(data){
		return request.post(baseUrl + '/mbti/square-show',data);
	},
	vote(data){
		return request.post(baseUrl + '/mbti/vote',data);
	},
	rankingList(data){
		return request.post(baseUrl + '/mbti/ranking-list',data);
	},
	voteTop3(data){
		return request.post(baseUrl + '/mbti/vote-top3',data);
	},
	teamSpace(data){
		return request.post(baseUrl + '/mbti/team-space',data);
	},
	// 提交测试
	submitTest(data){
		return request.post(baseUrl + '/mbti/submit-test',data);
	},
	// 初始化数据
	initData(data){
		return request.post(baseUrl + '/mbti/init-data',data);
	},
	// 确认人格
	confirmTest(data){
		return request.post(baseUrl + '/mbti/confirm-test',data);
	},
	// 获取初始任务
	initTasks(data){
		return request.post(baseUrl + '/mbti/init-tasks',data);
	},
	// 队伍管理
	teamManage(data){
		return request.post(baseUrl + '/mbti/team-manage',data);
	},
	// 提交任务
	submitTask(data){
		return request.post(baseUrl + '/mbti/submit-task',data);
	},
	// 队伍任务投票
	teamVote(data){
		return request.post(baseUrl + '/mbti/team-vote',data);
	},
	// 组队取消的弹框回调
	cancelTeam(data){
		return request.get(baseUrl + '/mbti/team-delete-call-back',data);
	},
	// 获取自己的企业微信名
	getName(data){
		return request.get(baseUrl + '/mbti/get-eng-name',data);
	},
	// 队员的企业微信号
	members(data){
		return request.get(baseUrl + '/mbti/members-engname',data);
	},
	// 签到详情
	taskDetail(data){
		return request.post(baseUrl + '/mbti/task-work17-detail',data);
	},
	// 点赞详情
	taskWork20Detail(data){
		return request.post(baseUrl + '/mbti/task-work20-detail',data);
	},
	// 获取二维码
	qrCode(data){
		return request.post(baseUrl + '/default/qr-code',data);
	},
	updateSubscribeStatus(data){
		return request.post(baseUrl + '/mbti/update-subscribe-status',data);
	},
	uploadTaskPic(data){
		return request.post(baseUrl + '/mbti/submit-task-pic',data);
	},
	writeLog2(data){
		return request.get(baseUrl + '/mbti/write-event',data);
	}
};
export default http;
wx['http'] = http;